<?php

	/**
	 * Verifies bootstrapper execution to ensure file
	 * necessities, and disabling direct access
	 */
	defined('ENGINE') or exit;
	
	/**
	 * Returns a randomly generated string, based on the
	 * defined string length, and character set
	 */
	function random_string($length = 8, $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz!@#$%^&*()_-+=[]{}"\':;?><,.~`\\/')
	{
		$return = false;
		
		for($i = 0; $i < $length; $i++)
		{
			$return .= $chars[rand(0, rand(0, (strlen($chars)-1)))];
		}
		
		return($return);
	}

?>